<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改订单申请配件详情')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-serviceOrderPartsRel-edit" th:object="${zsyhServiceOrderPartsRel}">
            <input name="id" th:field="*{id}" type="hidden">
            <div class="form-group">    
                <label class="col-sm-3 control-label">订单id：</label>
                <div class="col-sm-8">
                    <input name="orderId" th:field="*{orderId}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">关联配件申请id serviceOrderPartsId：</label>
                <div class="col-sm-8">
                    <input name="orderPartsId" th:field="*{orderPartsId}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">配件分类 afterPartsId：</label>
                <div class="col-sm-8">
                    <input name="afterPartsId" th:field="*{afterPartsId}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">自购配件 给师傅的钱：</label>
                <div class="col-sm-8">
                    <input name="partsMoneyRepair" th:field="*{partsMoneyRepair}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">自购配件 收取厂家的钱：</label>
                <div class="col-sm-8">
                    <input name="partsMoneyFactory" th:field="*{partsMoneyFactory}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">故障配件数量：</label>
                <div class="col-sm-8">
                    <input name="partsNum" th:field="*{partsNum}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">是否是自购件 1是 0否：</label>
                <div class="col-sm-8">
                    <select name="isSelfParts" class="form-control m-b" th:with="type=${@dict.getType('zsyh_yesno')}">
                        <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{isSelfParts}"></option>
                    </select>
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "zsyh/serviceOrderPartsRel";
        $("#form-serviceOrderPartsRel-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-serviceOrderPartsRel-edit').serialize());
            }
        }
    </script>
</body>
</html>